package Day08_20;

public class Account {
    private int money ;

    public Account(int money) {
        this.money = money;
    }

    public Account() {
    }

    public int getMoney() {
        return money;
    }

    public void setMoney(int money) {
        this.money = money;
    }
    public void withdrew(int money){
        int startMoney = this.money;
        int endMoney = startMoney - money;
        this.setMoney(endMoney);
    }
}
